package com.tricode.ile.training.task.sl275.lab6;

import java.util.ArrayList;

public class Customer {
    private String firstName;
    private String lastName;
    private Account account;
    private ArrayList<SavingsAccount> savingAccounts = new ArrayList<SavingsAccount>();
    private ArrayList<CheckingAccount> checkingAccounts = new ArrayList<CheckingAccount>();

    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public ArrayList<SavingsAccount> getSavingAccounts() {
        return savingAccounts;
    }

    public void setSavingAccounts(ArrayList<SavingsAccount> savingAccounts) {
        this.savingAccounts = savingAccounts;
    }

    public ArrayList<CheckingAccount> getCheckingAccounts() {
        return checkingAccounts;
    }

    public void setCheckingAccounts(ArrayList<CheckingAccount> checkingAccounts) {
        this.checkingAccounts = checkingAccounts;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Account getAccount() {
        return account;
    }

    public String getLastName() {
        return lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void addAccount(SavingsAccount savingsAccount) {
        this.savingAccounts.add(savingsAccount);
    }

    public void addAccount(CheckingAccount checkingAccount) {
        this.checkingAccounts.add(checkingAccount);
    }

    public SavingsAccount getAccount(int i) {
        return savingAccounts.get(i);
    }
}
